import {request} from "../../request";

export function getRecipientsinfoById(id){
    return request({
        url:`/lswms/recipientsinfo/${id}`,
        method:'get'
    })
}


export function getRecipientsinfoPage(data){
    return request({
        url:'/lswms/recipientsinfo/page',
        method:'put',
        data:data
    })
}

export function putRecipientsinfo(data){
    return request({
        url:'/lswms/recipientsinfo',
        method:'put',
        data:data
    })
}
export function postRecipientsinfo(data){
    return request({
        url:'/lswms/recipientsinfo',
        method:'post',
        data:data
    })
}

export function deleteRecipientsinfo(data){
    return request({
        url:`/lswms/recipientsinfo`,
        method:'delete',
        data:data
    })
}
export function exportRecipientsinfo(data){
    return request({
        url:`/lswms/recipientsinfo/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function getRecipientsinfoByParams(data){
    return request({
        url:`/lswms/recipientsinfo/byParams`,
        method:'get',
		params: data
    })
}

